<extend name="Index/doc" />
<block name="css">
    <link rel="stylesheet" href="__STATIC__/common/css/base.css?v=__VERSION__">
    <link rel="stylesheet" href="__STATIC__/doc/css/main.css?v=__VERSION__">
</block>
<block name="main">
	<div class="book-cate" id="cateSec">
        <div class="book-search hide">
            <input type="text" placeholder="Type to search" class="book-input-search" />
        </div>
        <div class="book-summary-title">
            <a href="{:U('/show/'.$doc['id'])}" class="book-name">{$doc.name}</a>
        </div>
        <div class="cateContainer" id="cateContainer">
            <li><a href="{:U('/'.$doc['id'])}" cid="0"> 写在前面</a></li>
        </div>
    </div>
    <div class="book-container with-cate" id="articleSec">
        <div class="book-body">
            <div class="book-header clearfix">
                <a href="javascript:void(0);" class="left" id="cateBtn"><span class="icon-sum"></span></a>
                <a href="javascript:void(0);" class="left search-onOff"><span class="icon-search"></span></a>
                <a href="javascript:void(0);" class="left"><span class="icon-a"></span></a>
                <a href="javascript:void(0)" class="show-ad left"></a>
                <a href="javascript:void(0);" class="right hide"><span class="icon-share"></span></a>
                <a href="javascript:void(0);" class="right" id="shareQQ" title="分享到QQ空间" target="_blank"><span class="icon-qq"></span></a>
                <a href="javascript:void(0);" class="right" id="shareWeibo" title="分享到微博" target="_blank"><span class="icon-weibo"></span></a>
                <a href="javascript:void(0);" class="right" id="shareWeixin" title="分享到微信" target="_blank"><span class="icon-weixin"></span></a>
            </div>
            <div class="book-main clearfix">
                <div class="wooo">
                    <h1 class="article-title" id="articleTitle">{$article.title}</h1>
                    <if condition="$article['html']">
                        {$article.html}
                        <p class="article-footer">本文由<a href="{:U('/u/'.$article['uid'])}">{$article.author}</a>更新于 <code>{$article.create|date="Y-m-d H:i:s",###}.</code>如果您愿意帮助我们完善优化本文内容，请提交您的意见或建议，或直接<a href="{:U('/e/'.$doc['id'].'/c/'.$cid)}">编辑本文</a><br/><strong>更新说明：</strong>{$article.desc}</p>
                    <else />
                        <p>本文暂未编辑或正在审阅中，请耐心等待！</p>
                        <p class="article-footer">如果您愿意帮助我们完善优化本文内容，请提交您的意见或建议，或直接<a href="{:U('/e/'.$doc['id'].'/c/'.$cid)}">编辑本文</a>。</p>
                    </if>
                </div>
                <a href="javascript:void(0)" class="book-btn prev" title="上一篇：木有了..."><span class="icon-left"></span></a>
                <a href="javascript:void(0)" class="book-btn next" title="下一篇：木有了..."><span class="icon-right"></span></a>
            </div>
        </div>
    </div>
    <a href="//wooo.wang/suggest" target="_blank" id="bugBtn"><span class="icon-left" onclick="$(this).parent().toggleClass('bugMark');return false;"></span> 提交BUG</a>
</block>
<block name="js">
    <script src="__STATIC__/common/js/zepto.min.js?v=__VERSION__"></script>
    <script src="__STATIC__/doc/js/base.js?v=__VERSION__"></script>
    <script>
        var did = {$doc.id}, cate = {$cate|default = []}, token = "{$token|default = ''}", cid = {$cid}, uid = {:UID}, oid = {$doc.bid};
        var docName = "{$doc.name}", articleName = "{$article.title|default=写在前面}";
    </script>
    <script src="__STATIC__/doc/js/showDoc.js?v=__VERSION__"></script>
</block>